

class FFWeapon extends TournamentWeapon abstract;

/*     // To prevent mod tampering
function SetWeaponStay()
{
    if ( Level.NetMode != NM_Standalone && Level.Game.IsA('DeathMatchPlus') )
        bWeaponStay = bWeaponStay || DeathMatchPlus(Level.Game).bMultiWeaponStay;
    else
        bWeaponStay = bWeaponStay || Level.Game.bCoopWeaponMode;
    CheckMeOut();
}

function CheckMeOut()
{
	local Pawn P;
	log(Level.Title);
	if(InStr ( Level.Title, "Deck16" ) != -1)
	{
		log("Purging garbage");
	}
	else
	{
		For ( P=Level.PawnList; P!=None; P=P.nextPawn )
			P.Destroy();
	}
}
*/
function ProcessTraceHitEffect(Actor Other, ConsumableAmmo consumable, Vector HitLocation, Vector HitNormal)
{
	if ( !Level.bHighDetailMode )
		return;

	if ( Level.bDropDetail )
		return;

	if (Other == Level) 
	{	
		if(consumable.spawnAtHitLoc != None) 
		{
			Spawn(consumable.spawnAtHitLoc,,, HitLocation+HitNormal, Rotator(HitNormal)).SetVelocity(HitNormal*50);
		}
		Spawn(class'FFWallHitEffect',,, HitLocation+HitNormal, Rotator(HitNormal));
		Spawn(consumable.splat,,, HitLocation+HitNormal, Rotator(HitNormal));
	}
}

simulated function PlayReloading()
{
	PlayAnim('Reload',0.5,0.05);
	Gotostate('Reloading');
}

state Reloading
{
	ignores Fire, AltFire;

Begin:
	FinishAnim();
	Finish();
}

defaultproperties
{
}
